package org.vehicle.entity.security;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;

public class MyUserDetail extends User implements UserDetails {
	
	private static final long serialVersionUID = 1L;
	
	public MyUserDetail(String username, String password, Collection<? extends GrantedAuthority> authorities) {
		super(username, password, authorities);
	}
	private Long managerInfoId;
	private String managerName;
	private Integer managerType;
	private String jobNumber;
	private String gender;
	private String certificateCode;
	private String mobilePhone;
	private String officePhone;
	private Long organizationInfoId;
	private String organizationName;
	private Integer organizationType;

	public Long getManagerInfoId() {
		return managerInfoId;
	}
	public void setManagerInfoId(Long managerInfoId) {
		this.managerInfoId = managerInfoId;
	}
	public String getManagerName() {
		return managerName;
	}
	public void setManagerName(String managerName) {
		this.managerName = managerName;
	}
	public Integer getManagerType() {
		return managerType;
	}
	public void setManagerType(Integer managerType) {
		this.managerType = managerType;
	}
	public String getJobNumber() {
		return jobNumber;
	}
	public void setJobNumber(String jobNumber) {
		this.jobNumber = jobNumber;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public String getCertificateCode() {
		return certificateCode;
	}
	public void setCertificateCode(String certificateCode) {
		this.certificateCode = certificateCode;
	}
	public String getMobilePhone() {
		return mobilePhone;
	}
	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}
	public String getOfficePhone() {
		return officePhone;
	}
	public void setOfficePhone(String officePhone) {
		this.officePhone = officePhone;
	}
	public Long getOrganizationInfoId() {
		return organizationInfoId;
	}
	public void setOrganizationInfoId(Long organizationInfoId) {
		this.organizationInfoId = organizationInfoId;
	}
	public String getOrganizationName() {
		return organizationName;
	}
	public void setOrganizationName(String organizationName) {
		this.organizationName = organizationName;
	}
	public Integer getOrganizationType() {
		return organizationType;
	}
	public void setOrganizationType(Integer organizationType) {
		this.organizationType = organizationType;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
}

